#!/bin/bash

#
# Just configure the Image/fs/qemu as fixed path
# -initrd ./rootfs.cpio.gz \
#
# gdb-multiarch vmlinux -tui
# target remote :8000
# b log_store
#
# gdb-multiarch vmlinux
# gdb-multiarch vmlinux -x printk.sh
#
set -x

./qemu-system-aarch64 -machine virt -cpu cortex-a57 \
-m 256M \
-kernel ./arch/arm64/boot/Image \
-append "memblock=debug loglevel=8 console=ttyAMA0 root=/dev/ram rdinit=/init" \
-nographic \
-S -gdb tcp::8000

